package com.ljp.chat.entity.pojo;

import com.baomidou.mybatisplus.annotation.TableName;
import com.ljp.chat.support.expansion.annotations.UniqueFiled;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotEmpty;

/**
 * @author LvJunPeng
 * @since 2022-11-02
 */
@Data
@Accessors(chain = true)
@TableName(value = "account")
public class Account extends BaseEntity {

    /**
     * 账号昵称
     */
    @NotEmpty(message = "账号昵称不能为空")
    private String accountName;

    /**
     * 账号
     */
    @UniqueFiled(filed = "account", message = "账号", group = "one")
    private String account;

    /**
     * 密码
     */
    @NotEmpty(message = "密码不能为空")
    private String password;

    /**
     * 头像
     */
    private String headPortrait;

    /**
     * 个性签名
     */
    private String personalSignature;

    /**
     * 注册时长
     */
    private Long registerTime;

    /**
     * 账号状态1：正常 0：异常
     */
    private Boolean status;

    /**
     * 账号权限0：超级账号 1：普通用户
     */
    private Boolean authority;

    /**
     * 逻辑删除 1：true 0：false
     */
    private Boolean isDelete;
}
